package com.my.blog.website.service;

import com.github.pagehelper.PageInfo;
import com.my.blog.website.modal.Vo.UploadVo;

/**
 * Created by wangq on 2017/3/20.
 */
public interface IUploadService {
    /**
     * 分页查询附件
     * @param page
     * @param limit
     * @return
     */
    PageInfo<UploadVo> getTodayUploads(Integer uid, Integer page, Integer limit);

    /**
     * 保存附件
     */
    void save(UploadVo uploadVo);

    /**
     * 根据附件id查询附件
     * @param id
     * @return
     */
    UploadVo selectById(Long id);

    /**
     * 删除附件
     * @param id
     */
    void deleteById(Long id);

    /**
     * 更新附件
     */
    void update(UploadVo uploadVo);

    /**
     * 根据条件分页查询附件
     * @param page
     * @param limit
     * @return
     */
    PageInfo<UploadVo> getListByCondition(Integer uid, String subPath,String ftype,String keyword,String delFlag, Integer page, Integer limit);
}
